import moment from "../pages/resourcemonitor/softwaremonitor";

export const musicKindList = [
  {
    value: 2,
    mean: '热歌榜',
  },
  {
    value: 1,
    mean: '新歌榜',
  },
  {
    value: 11,
    mean: '摇滚榜',
  },
  {
    value: 12,
    mean: '爵士',
  },
  {
    value: 16,
    mean: '流行',
  },
  {
    value: 21,
    mean: '欧美金曲榜',
  },
  {
    value: 22,
    mean: '经典老歌榜',
  },
  {
    value: 23,
    mean: '情歌对唱榜',
  },
  {
    value: 24,
    mean: '情歌对唱榜',
  },
  {
    value: 25,
    mean: '情歌对唱榜',
  }
]

export const languageKindList = [
  {
    value: 1,
    mean: '国语',
  },
  {
    value: 2,
    mean: '英语',
  },
  {
    value: 3,
    mean: '粤语',
  },
  {
    value: 4,
    mean: '韩语',
  },
  {
    value: 5,
    mean: '闽南语',
  }
]

export const publishCountry = [
  {
    value: 1,
    mean: '内地',
  },
  {
    value: 2,
    mean: '欧美',
  },
  {
    value: 3,
    mean: '港台',
  },
  {
    value: 4,
    mean: '韩国',
  },
  {
    value: 5,
    mean: '其他',
  }
]

export function getResourceNameByType(type){
  let name = "";
  switch (type) {
    case 0:
      name="服务器"
      break;
    case 1:
      name="客户端"
      break;
    case 2:
      name="UPS"
      break;
    case 3:
      name="路由器"
      break;
    case 4:
      name="交换机"
    case 5:
      name="软件"
      break;
  }
  return name;
}

export function getSoftResourceNameByType(type){
  let name = "";
  switch (type) {
    case 0:
      name="服务"
      break;
    case 1:
      name="程序"
      break;
    case 2:
      name="命令行"
      break;
  }
  return name;
}

export function getSoftStatusByType(type){
  let name = "";
  switch (type) {
    case 0:
      name="未启动"
      break;
    case 1:
      name="启动"
      break;
    case 2:
      name="未发现"
      break;
  }
  return name;
}

/**
 * 日志的类型
 * @type {{}[]}0 服务器 1 客户端 2 UPS 3 路由器 4 交换机 5 软件
 */
export const LOGTYPE = [
  {
    type:-1,
    name:"全部"
  },
  {
    type:0,
    name:"服务器"
  },
  {
    type:1,
    name:"客户端"
  },
  {
    type:2,
    name:"UPS"
  },
  {
    type:3,
    name:"路由器"
  },
  {
    type:4,
    name:"交换机"
  },
  {
    type:5,
    name:"软件"
  },
]

